package com.miracle9.game.entity;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity
public class UserMail
  extends BaseEntity
{
  private int mailId;
  private String title;
  @Column(updatable=false)
  private String content;
  private String datetime;
  private String sender;
  private int status;
  private int userId;
  private String username;
  
  public UserMail() {}
  
  public UserMail(int mailId, String title, String content, String datetime, String sender, int status, int userId, String username)
  {
    this.mailId = mailId;
    this.title = title;
    this.content = content;
    this.datetime = datetime;
    this.sender = sender;
    this.status = status;
    this.userId = userId;
    this.username = username;
  }
  
  public int getMailId()
  {
    return this.mailId;
  }
  
  public void setMailId(int mailId)
  {
    this.mailId = mailId;
  }
  
  public String getTitle()
  {
    return this.title;
  }
  
  public void setTitle(String title)
  {
    this.title = title;
  }
  
  public String getContent()
  {
    return this.content;
  }
  
  public void setContent(String content)
  {
    this.content = content;
  }
  
  public String getDatetime()
  {
    return this.datetime;
  }
  
  public void setDatetime(String datetime)
  {
    this.datetime = datetime;
  }
  
  public int getStatus()
  {
    return this.status;
  }
  
  public void setStatus(int status)
  {
    this.status = status;
  }
  
  public int getUserId()
  {
    return this.userId;
  }
  
  public void setUserId(int userId)
  {
    this.userId = userId;
  }
  
  public String getSender()
  {
    return this.sender;
  }
  
  public void setSender(String sender)
  {
    this.sender = sender;
  }
  
  public String getUsername()
  {
    return this.username;
  }
  
  public void setUsername(String username)
  {
    this.username = username;
  }
}
